/**
 * @author : andy
 * @description : 动态路由
 */
import type { RouteRecordRaw } from "vue-router";
const dynamicRoutes: RouteRecordRaw[] = [
  {
    path : '/',
    redirect : '/home/workbench',
    name : 'root',
    component : () => import('@/layouts/BaseLayout.vue'),
    children : [
      {
        path : '/home',
        name : 'home',
        redirect : '/home/workbench',
        children : [
          {
            path : '/home/workbench',
            name : 'workbench',
            component : () => import('@/pages/home/workbench/index.vue'),
            children : []
          },
          {
            name : 'analysis',
            path : '/home/analysis',
            component : () => import('@/pages/home/analysis/index.vue'),
            children : []
          }
        ]
      },
      {
        name : 'about',
        path : '/about',
        meta : {
          isKeepAlive : true
        },
        component : () => import('@/pages/about/index.vue'),
        children : []
      },
      {
        name : 'test',
        path : '/test',
        redirect : '/test/test1',
        children : [
          {
            name : 'test1',
            path : '/test/test1',
            component : () => import('@/pages/test/test1/index.vue')
          }
        ]
      }
    ]
  }
]
export default dynamicRoutes;